package com.lagou.config;

import java.util.List;

/**
 * @author: wudong
 * @create: 2021-05-28 09:34
 **/
public interface Registry<T> extends AliasRegistry{
    void registerBeanDefinition(String name,T register);

    T getBeanDefinition(String name);

    List<RegisterInfo<T>> listAllRegister();

    public static class RegisterInfo<T>{
        private T register;
        private String name;

        public RegisterInfo() {
        }

        public RegisterInfo(T register, String name) {
            this.register = register;
            this.name = name;
        }

        public T getRegister() {
            return register;
        }

        public void setRegister(T register) {
            this.register = register;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}
